//
//  KVNHttpRequestEngine.h
//  Test1
//
//  Created by KelvinYeung on 15/7/22.
//  Copyright (c) 2015年 KelvinYeung. All rights reserved.
//

#import "MKNetworkEngine.h"
#import <CoreData/CoreData.h>


@interface KVNHttpRequestEngine : MKNetworkEngine

typedef void (^KVNResponseBlock)(id completionBlock);





#pragma mark - 热门团租、热门团购  type: 1为团购 2为团租
-(MKNetworkOperation*) homeHotListWithType:(int) type
                        pageNumber:(int) pageNumber
                          pageSize:(int) pageSize
                     completionHandler:(KVNResponseBlock) completion
                          errorHandler:(MKNKErrorBlock) error;


#pragma mark - 通用数据请求
- (MKNetworkOperation *) postWithPath:(NSString *)path
                                 json:(NSDictionary *) json
                    completionHandler:(KVNResponseBlock) completion
                         errorHandler:(MKNKErrorBlock) error;




@end
